/*
 * @Description:顾客管理仓库
 * @Author: Ronda
 * @Date: 2021-05-10 16:17:17
 * @LastEditors: Ronda
 * @LastEditTime: 2021-05-11 15:51:41
 */
import { get } from '@/utils/request'
export default {
  namespaced: true,
  state: {
    waiterData: []
  },
  mutations: {
    SET_WAITERS(state, payload) {
      state.waiterData = payload
    }
  },
  actions: {
    async getAllWaiterData({ commit }, payload) {
      let res = await get('/baseUser/pageQuery',payload)
      commit('SET_WAITERS', res.data.list)
    }
  }
}
